package org.example.spring04;

import org.example.spring04.service.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class Spring04Application {

    public static void main(String[] args) {
        ApplicationContext ioc = SpringApplication.run(Spring04Application.class, args);
        UserService bean = ioc.getBean(UserService.class);
        bean.add();

    }
}
